package com.sp.scmdb.utils;

import junit.framework.TestCase;

import org.joda.time.DateTime;
import org.joda.time.LocalTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;

public class Test extends TestCase {

	public void testAA() {
		byte aa=(byte) 0x00C0;
		byte bb=(byte)0x7f;
		System.out.println(aa&bb);
		DateTime date=new DateTime("2011-01-01");
		
		LocalTime local=new LocalTime("10:20:33");
		System.out.println(local.toString());
		DateTimeFormatter FORMATTER =DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss"); 
		date =FORMATTER.parseDateTime("2011-01-01 10:20:33");
		System.out.println(date.toString("yyyy-MM-dd"));
		
		System.out.println((FORMATTER.parseMillis("2011-01-01 10:20:34") - FORMATTER.parseMillis("2011-01-01 10:20:33")) / 1000);
	
	}
	
	

}
